

function addSensorbitCod(Blockly) {




    //激光发射模块
  Blockly.Python.microbit_laser = function(block) {
    var dropdown_laser = this.getFieldValue('laser');
    var dropdown_laserStatus = this.getFieldValue('laserStatus');
    Blockly.Python.definitions_['import_microbit'] = 'from microbit import *';
    Blockly.Python.definitions_['import_LightEmission'] = 'from actuator import laser';
    var code = "laser.emission("+ dropdown_laser +", "+ dropdown_laserStatus +")\n";
    return code;
  }

    return Blockly;
}

module.exports = addSensorbitCod;

